package com.directv.z8training.EMS.Entity;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the GROUP_RIGHT database table.
 * 
 */
@Entity
@Table(name="GROUP_RIGHT")
@NamedQuery(name="GroupRight.findAll", query="SELECT g FROM GroupRight g")
public class GroupRight implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private GroupRightPK id;

	//bi-directional many-to-one association to Group
	@ManyToOne
	@JoinColumn(name="GROUPCODE")
	private Group group;

	//bi-directional many-to-one association to Right
	@ManyToOne
	@JoinColumn(name="RIGHTCODE")
	private Right right;

	public GroupRight() {
	}

	public GroupRightPK getId() {
		return this.id;
	}

	public void setId(GroupRightPK id) {
		this.id = id;
	}

	public Group getGroup() {
		return this.group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}

	public Right getRight() {
		return this.right;
	}

	public void setRight(Right right) {
		this.right = right;
	}

}